import { configDefaults, defineConfig } from 'vitest/config'
import vue from '@vitejs/plugin-vue'
import vueJsx from '@vitejs/plugin-vue-jsx'
import alias from './alias'

export default defineConfig({
  plugins: [vue(), vueJsx()],
  resolve: {
    alias,
  },
  test: {
    globals: true, // vitest 全局函数自动导入，例如 describe
    environment: 'jsdom',
    exclude: [...configDefaults.exclude, 'e2e/**'],
  },
})
